<!DOCTYPE html>
{% load i18n admin_static %}
<html>
	<head>
		<title>执业助理医师考试在线题库</title>
		<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
		<link href="/static/style.css" type="text/css" rel="stylesheet"/>
		<script src="/static/jquery-2.1.1.min.js"></script>
	</head>
	<body>
		<div name="header" style="width:100%; margin: 0 auto;background-color: #BAE3F9;">
			<div name="header_detail" style="width:900px;height:100px;margin: 0 auto;">
				<table>
					<tr>
						<td class="handpoint" style="height:100px;"><img style="width: 60px;height: 50px;" src="/static/images/icon.png"/></td>
						<td class="handpoint" style="padding-left:15px; font-weight: 700;font-size: 28px;color: #52AAC1;">执业助理医师考试在线题库</td>
					</tr>
				</table>
			</div>
		</div>
		<div name="space" style="height:70px;"></div>
		<div name="body" style="width:900px; margin: 0 auto;">
			<table>
				<tr name="first">
					<td name="lt_corner" style="width:50px; height:50px; background: 0 0px no-repeat scroll url(/static/images/login_body.png);"></td>
					<td style="background-color: #BAE3F9;"></td>
					<td rowspan="3" name="right" style="width:150px;height:450px;background: no-repeat scroll url(/static/images/login_body_right.png);background-size:100% 100%;"></td>
				</tr>
				<tr style="background-color: #BAE3F9;">
					<td></td>
					<td style="height:430px; min-width:600px; vertical-align:top">
                        <div style="position:relative;top:-20px;">
                            <span style="font-weight: 700;font-style: normal;font-size: 24px;color: #52AAC1;text-align: left;">用户登录</span>
                            <div style="height:10px;">
                                <img src="/static/images/u38_line.png" />
                            </div>
                        </div>
                        
						{% block content %}

                        <div id="content-main" style="margin-left:80px;width:540px;">
                            <form action="{{ app_path }}" method="post" id="login-form">{% csrf_token %}
                                <table style="color: #52AAC1;">
                                    <tr>
                                        <td></td>
                                        <td style="width:75px"></td>
                                        <td style="height:6px;">
                                            {% if form.errors and not form.non_field_errors and not form.this_is_the_login_form.errors %}
                                            {% trans "请修改以下错误：" %}
                                            {% endif %}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td style="width:75px"></td>
                                        <td style="height:6px;">
                                            {% if form.non_field_errors or form.this_is_the_login_form.errors %}
                                            {% for error in form.non_field_errors|add:form.this_is_the_login_form.errors %}
                                                {{ error }}
                                            {% endfor %}
                                            {% endif %}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td style="width:75px"></td>
                                        <td>{% if not form.this_is_the_login_form.errors %}{{ form.username.errors }}{% endif %}</td>
                                    </tr>
                                    <tr>
                                        <th style="width:90px;height:60px;">
                                            <label for="id_username" class="required" style="font-weight: 700;font-size: 16px;">用户名:</label>
                                        </th>
                                        <td style="width:75px"></td>
                                        <td style="width:450px;height:60px;">{{ form.username }}</td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td style="width:75px"></td>
                                        <td>{% if not form.this_is_the_login_form.errors %}{{ form.password.errors }}{% endif %}</td>
                                    </tr>
                                    <tr>
                                        <th style="width:90px;height:60px;">
                                            <label for="id_password" class="required" style="font-weight: 700;font-size: 16px;color: #52AAC1;">密码: </label>
                                        </th>
                                        <td style="width:75px"></td>
                                        <td style="width:450px;height:60px;">{{ form.password }}</td>
                                    </tr>
                                    <tr>
                                        <td><input type="hidden" name="this_is_the_login_form" value="1" />
                                            <input type="hidden" name="next" value="{{next}}" /></td>
                                        <td style="width:75px"></td>
                                        <td style="height:30px;">
                                            {% url 'admin_password_reset' as password_reset_url %}
                                            {% if password_reset_url %}
                                            <div class="password-reset-link">
                                                <a href="{{ password_reset_url }}">{% trans '忘记用户名、密码?' %}</a>
                                            </div>
                                            {% endif %}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td style="width:75px"></td>
                                        <td style="width:450px;height:60px;">
                                            <input class="button" type="submit" value="登录" />
                                            <input class="button" style="margin-left:16px;" value="注册"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td style="width:75px"></td>
                                        <td style="width:450px;height:40px;">请输入正确的用户名和密码登录　如果您还没有帐号，请先注册</td>
                                    </tr>
                                </table>
                            </form>
                            <script type="text/javascript">
                            document.getElementById('id_username').focus()
                            </script>
                        </div>
                        {% endblock %}
					</td>
				</tr>
				<tr name="last">
					<td name="lb_corner" style="width:50px; height:50px; background: 0 -480px no-repeat scroll url(/static/images/login_body.png);"></td>
					<td style="background-color: #BAE3F9;"></td>
				</tr>
			</table>
		</div>
		<div name="space" style="height:70px;"></div>
		<div name="footer" style="width:100%; margin: 0 auto;">
			<table style="width:550px; margin: 0 auto;">
				<tr>
					<td style="width:100px;font-weight: 700;color: #BAE3F9;text-align: center;">网站首页</td>
					<td style="width:100px;font-weight: 700;color: #BAE3F9;text-align: center;">用户须知</td>
					<td style="width:100px;font-weight: 700;color: #BAE3F9;text-align: center;">隐私协议</td>
					<td style="width:200px;font-weight: 700;color: #BAE3F9;text-align: left;">豫ICP备08006856号</td>
				</tr>
			</table>
		</div>
	</body>
</html>
